﻿using System;
using UnityEngine;

// Token: 0x0200041B RID: 1051
public class LogicExplodingGoblin : MonoBehaviour
{
	// Token: 0x06001DC9 RID: 7625 RVA: 0x000B6CB0 File Offset: 0x000B4EB0
	private void OnGUI()
	{
		if (!LogicGlobalFracturing.HelpVisible)
		{
			return;
		}
		LogicGlobalFracturing.GlobalGUI();
		GUILayout.Label("This scene shows:", new GUILayoutOption[0]);
		GUILayout.Label("-Voronoi fracturing", new GUILayoutOption[0]);
		GUILayout.Label("-Triggered explosion", new GUILayoutOption[0]);
		GUILayout.Label("-Collision particles", new GUILayoutOption[0]);
		GUILayout.Label("-Collision sounds", new GUILayoutOption[0]);
		GUILayout.Label(string.Empty, new GUILayoutOption[0]);
		GUILayout.Label("Press the button below to explode the object.", new GUILayoutOption[0]);
		if (GUILayout.Button("Explode", new GUILayoutOption[0]))
		{
			this.TargetFracturedObject.Explode(this.TargetFracturedObject.transform.position, this.ExplosionForce);
		}
	}

	// Token: 0x04001DE3 RID: 7651
	public float ExplosionForce = 4f;

	// Token: 0x04001DE4 RID: 7652
	public FracturedObject TargetFracturedObject;
}
